<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
    <div class="form-group">
        <!-- 订单详细 -->
        <label class="control-label col-xs-12 col-sm-1">{:__('code')}:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-supplierid" name="row[code]" min="0" class="form-control" type="text" placeholder="{:__('code')}" value="{$row.code}">
            <!-- <input type="hidden"  id="supplierid"> -->
        </div>

        <label class="control-label col-xs-12 col-sm-1">{:__('busid')}:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-mobile" type="text" class="form-control" name="row[busid]" placeholder="{:__('busid')}" value="{$row.business.nickname_text}" />
        </div>
 
        <!-- 收货地址 -->
        <label class="control-label col-xs-12 col-sm-1">{:__('businessaddrid')}:</label>
        <div class="col-xs-12 col-sm-3">
            <div class='control-relative'>
                <input id="addresstext" class="form-control" type="text" name="row[address_text]" 
                value="{$row.address.address_text}">
                <input type="hidden" name="row[businessaddrid]" id="businessaddrid" value="{$row.address.id}">
            </div>
        </div>
        <!-- <label class="control-label col-xs-12 col-sm-1">{:__('Address')}:</label> -->
        <div class="col-xs-12 col-sm-2">
            <input id="c-address" type="text" class="form-control" name="row[address]"  placeholder="{:__('Address')}" value="{$row.address.address}" />
        </div>
        
        <!-- 商品数据 -->
        <input type="hidden" name="row[product]" id="products">

        <!-- 商品总价 -->
        <input type="hidden" name="row[total]" id="total">
        <input type="hidden" name="row[totalnums]" id="nums">
    </div>
    <div class="form-group">
        <!-- 订单状态 -->
        <label class="control-label col-xs-12 col-sm-1">{:__('status')}:</label>
        <div class="col-xs-12 col-sm-2">  
            <select id="c-type" class="form-control selectpicker" name="row[status]">
                {foreach name="statuslist" item="vo"}
                <option value="{$key}" {in name="key" value="$row.status|htmlentities" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <!-- 订单备注 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-1">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control " rows="5" name="row[remark]" cols="50">{$row.remark|htmlentities}</textarea>
        </div>
    </div>
    <!-- 添加商品 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-1">
            <button type="button" class="btn btn-primary" id="product">添加商品</button>
        </label>
    </div>
    <!-- 表格 -->
    <div class="form-group">
        <table id="table" class="table table-striped table-bordered table-hover table-nowrap col-sm-10 control-label">
        </table>
    </div>
    
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<style>
    .region_city .city-picker-span {
        width: 80% !important;
    }
</style>